<?php
  include"configtop.php";
?>
<?php
    $uid=$_POST["uid"];
    $auctionname=$_POST["nameauction"];
    $auctiontype=$_POST["auctiontype"];
    $max=$_POST["max"];
    $begin=$_POST["begin"];
    $hope=$_POST["hope"];
    $image=$_POST["image"];
    $startd=$_POST["startd"];
    $startm=$_POST["startm"];
    $starty=$_POST["starty"];
    $starth=$_POST["starth"];
    $startmm=$_POST["startmm"];
    $starts=$_POST["starts"];
    $finishd=$_POST["finishd"];
    $finishm=$_POST["finishm"];
    $finishy=$_POST["finishy"];
    $finishh=$_POST["finishh"];
    $finishmm=$_POST["finishmm"];
    $finishs=$_POST["finishs"];
    $productname=$_POST["productname"];
    $producttype=$_POST["producttype"];
    $productmadein=$_POST["productmadein"];
    $productquantity=$_POST["productquantity"];
    $productnew=$_POST["productnew"];
    $productdescript=$_POST["productde"];
    $timenow=time();
    $timenow=md5($timenow);
    $table="auction";
    $query="INSERT INTO `auction`( `checktemp`, `name`, `user`, `auctiontype`, `max`, `min`, `start`, `finish`,  `image`, `hopeprice`)
     values('$timenow','$auctionname','$uid','$auctiontype',$max,$begin,'$starty-$startm-$startd $starth:$startmm:$starts','$finishy-$finishm-$finishd $finishh:$finishmm:$finishs',' $image',$hope)";
    $res=mysql_query($query);
    $auid="";
    $lastID=mysql_insert_id();        
    
    $query="INSERT INTO `product`( `name`, `user`, `itemtype`, `isnew`, `madein`, `quantity`, `auction`, `description`) 
    values('$productname',$uid,'$producttype','$productnew','$productmadein',$productquantity,$lastID,'$productdescript')";
    $res=mysql_query($query);         
    echo($query);
?>
<?php
  include"configbot.php"  
?>
    

